package com.ftg.learn.chapter01;

/**
 * 我自己
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/11/28 上午10:57
 */
public class Myself {

    public static void main(String[] args) {
        Myself m1 = new Myself();
        m1.setName("张三");

        Myself m2 = new Myself();
        m2.setName("李四");
        m1.setM1(m2);
    }

    private String name;

    private Myself m1;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Myself getM1() {
        return m1;
    }

    public void setM1(Myself m1) {
        this.m1 = m1;
    }
}
